4D Chart v12

CT Place picture

ホーム

 
4D Chart v12
CT Place picture

 

CT Place picture 


 

CT Place picture ( area ; picture ; left ; top ) -> 戻り値 
引数 型   説明
area  倍長整数 in 4D Chart エリア
picture  ピクチャー in 配置する4D ピクチャ
left  実数 in 左端からポイント単位で表した左座標
top  実数 in 上端からポイント単位で表した上座標
戻り値  倍長整数 in ピクチャのオブジェクトID

説明   

CT Place picture は left と top によって決定される点で picture を area に貼り付け、そのピクチャのオブジェクトIDを返します。

ピクチャは、正しい4Dのピクチャ式である必要があります。

例題  

以下の例は、指定された企業のエリアにピクチャフィールドの [Logos]Logo の内容を貼り付けます。

 MyRequest:=Request("Which company’s logo do you want?")
 If(OK=1)
    QUERY([Logos];[Logos]Company=MyRequest)
    If(Records in selection([Logos]>0)
       $NewPict:=CT Place picture(Area;[Logos]Logo;10;10)
    Else
       ALERT("This company does not exist.")
    End if
 End if

 
プロパティ 

プロダクト: 4D Chart
テーマ: CTオブジェクト
番号: 14562

 
履歴 

初出: 4D Chart 1